<?php

/**
 * @author Thanh Nguyen Dinh - VCCorp
 * @copyright 2013
 */

class config_model extends CI_Model
{
    function __construct()
    {
        parent::__construct();
    }     
    
	function get_config_by_id($id)
    {
    	$this->db->select('*')->from('landing_config')->where('id',$id);
    	$rs = $this->db->get();
    	if ($rs->num_rows() == 0) {
            $rs->free_result();
            return false;
        } else {
            $return = $rs->result_array();            
            $rs->free_result();            
            return $return[0];
        }
    }
}

?>